package com.jf.spring.genericInjection;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-10-24
 * Time:11:05
 */
public abstract class BasicService <T>{
    /*
    泛型注入建议使用@Autowired
     */
    @Autowired
    private BasicDAO<T> basicDAO;
    public void save() {
        basicDAO.save();
    }
}
